package com.qianniu.napi.admin.service;

import com.qianniu.napi.admin.entity.*;
import org.redisson.api.RBucket;

import java.util.List;
import java.util.concurrent.TimeUnit;

public interface IRedisService {

    public Boolean isnull(String key);

    public Boolean isExists(String key);

    public <T> T get(String key);

    public <T> void set(String rkey,T t);

    public <T> void setList(String rkey,T t);

    public <T> List<T> getList(String rkey);

    public <T> void set(String rkey, T t,long ts,TimeUnit tu);

    public <T> void del(String rkey);

    public void delUser();

    public void delUser(Long uid);

    public User getUser();

    public User getUserByGuid(String guid);

    public MerchantApp getMApp();

    public MerchantApp getMApp(Long mpid);

    public Merchant getMerchant(Long mid);

    public MerchantConfig getMconfig();

    public MerchantConfig getMconfig(Long mpid);

    public MconfigExt getMconfigExt(Long mpid);

    public String getWxtoken();

    public String getWxtoken(String mpid);

    public String getWxactoken(String mpid);

}
